package com.example.d10_homework.homework07;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        // 创建一个奖池集合
        List<Integer> jackPot = new ArrayList<>();
        Collections.addAll(jackPot, 10, 5, 20, 50, 100, 200, 500, 800, 2, 80, 300, 700);

        CjThread cjThread = new CjThread(jackPot);

        Thread t1 = new Thread(cjThread, "抽奖箱1");
        Thread t2 = new Thread(cjThread, "抽奖箱2");

        t1.start();
        t2.start();
    }
}
